/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import eos.moe.dragoncore.api.model.AnimationEntityModel;
/*     */ import java.util.AbstractMap;
/*     */ import java.util.Arrays;
/*     */ import java.util.HashMap;
/*     */ import java.util.Map;
/*     */ import java.util.UUID;
/*     */ import java.util.function.Function;
/*     */ import net.minecraft.entity.EntityLivingBase;
/*     */ import net.minecraft.entity.player.EntityPlayer;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class zz
/*     */   extends ey
/*     */ {
/*     */   public String f;
/*     */   public UUID s;
/*     */   public Map<String, String> m;
/*     */   public Map<String, String> l;
/*     */   public Map<String, bh> t;
/*     */   public vu d;
/*     */   public Map<String, Double> z;
/*     */   public Map<String, Boolean> i;
/*     */   public qr w;
/*     */   private Map<String, bo> q;
/*     */   private qp g;
/*     */   
/*     */   public zz(EntityLivingBase entityLivingBase, Map<String, bo> map) {
/*  42 */     super(null, null);
/*  43 */     this.q = map;
/*  44 */     this.l = new HashMap<>();
/*  45 */     this.m = new HashMap<>();
/*  46 */     this.t = new HashMap<>();
/*  47 */     this.w = (entityLivingBase instanceof EntityPlayer) ? new yw((EntityPlayer)entityLivingBase) : new qr<>(entityLivingBase);
/*  48 */     this.z = new HashMap<>();
/*  49 */     this.i = new HashMap<>();
/*  50 */     this.g = uu.v();
/*  51 */     this.g.v("方法", "func", ds.v(this));
/*     */   }
/*     */ 
/*     */   
/*     */   public zz(ki ki1, ki ki2, Map<String, bo> map) {
/*  56 */     super(ki1, ki2);
/*  57 */     this.q = map;
/*     */   }
/*     */ 
/*     */   
/*     */   public void v(AnimationEntityModel animationEntityModel, be be1, ji ji1, long l) {
/*  62 */     bo bo = ji1.v();
/*     */     
/*  64 */     bo.v(animationEntityModel, be1, ck.v(ji1.v(l), 0, ji1.v().v()));
/*     */   }
/*     */ 
/*     */   
/*     */   public void applyAnimation(AnimationEntityModel animationEntityModel) {
/*  69 */     v(animationEntityModel);
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(AnimationEntityModel animationEntityModel, be be1, ji ji1) {
/*  75 */     super.v(animationEntityModel, be1, ji1);
/*     */     
/*  77 */     if (this.t != null) {
/*  78 */       v(st.m, new String[] { ji1.v().v() });
/*     */     }
/*     */   }
/*     */   
/*     */   public bh v(String str) {
/*  83 */     if (str == null)
/*  84 */       return null; 
/*  85 */     if (!str.contains("变量.") && !str.contains("方法.")) {
/*  86 */       str = "'" + str + "'";
/*     */     }
/*  88 */     return uu.v(this.g, str);
/*     */   }
/*     */   
/*     */   public void z(String str1, String str2) {
/*  92 */     bh bh = uu.v(this.g, str2);
/*  93 */     this.t.put(str1, bh);
/*     */   }
/*     */   
/*     */   public String v(String str1, String str2) {
/*  97 */     return this.m.getOrDefault(str1, str2);
/*     */   }
/*     */   
/*     */   public void v(String str1, String str2) {
/* 101 */     this.m.put(str1, str2);
/*     */   }
/*     */   
/*     */   public Map<String, bo> h() {
/* 105 */     return this.q;
/*     */   }
/*     */   
/*     */   public Map<String, String> z() {
/* 109 */     return this.l;
/*     */   }
/*     */   
/*     */   public boolean v(st st1, String... arrayOfString) {
/* 113 */     return v(st1.v(), arrayOfString);
/*     */   }
/*     */   
/*     */   public boolean v(String str, String... arrayOfString) {
/* 117 */     if ((v()).field_70128_L)
/* 118 */       return false; 
/*     */     try {
/* 120 */       bh bh = this.t.get(str);
/* 121 */       if (bh != null) {
/* 122 */         ah[] arrayOfAh = (ah[])Arrays.<String>stream(arrayOfString).map(ah::new).toArray(a -> new ah[a]);
/* 123 */         o o = eh.v(bh, (o[])arrayOfAh);
/* 124 */         return o.v();
/*     */       } 
/* 126 */     } catch (Exception exception) {
/* 127 */       exception.printStackTrace();
/*     */     } 
/* 129 */     return false;
/*     */   }
/*     */   
/*     */   public void z(String str) {
/* 133 */     bh bh = uu.v(this.g, str);
/* 134 */     eh.v(bh, new o[0]);
/*     */   }
/*     */   
/*     */   public EntityLivingBase v() {
/* 138 */     return this.w.v();
/*     */   }
/*     */ 
/*     */   
/*     */   public Map.Entry<String, bo> v(String str) {
/* 143 */     bo bo = this.q.get(str);
/* 144 */     if (bo == null) {
/* 145 */       for (Map.Entry<String, bo> entry : this.q.entrySet()) {
/* 146 */         if (((String)entry.getKey()).contains(str))
/* 147 */           return entry; 
/*     */       } 
/* 149 */       return new AbstractMap.SimpleEntry<>(str, null);
/*     */     } 
/* 151 */     return new AbstractMap.SimpleEntry<>(str, bo);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\zz.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */